//
//  HMTextField.swift
//  Weibo
//
//  Created by 吴少飞 on 16/9/19.
//  Copyright © 2016年 wushaofei. All rights reserved.
//

import UIKit
//xib实时显示
@IBDesignable
class HMTextField: UITextField {

    //边框颜色
    @IBInspectable var borderColor:UIColor?{
        
        didSet{
            self.layer.borderColor = borderColor?.cgColor
        }
    }
    
    //边框的宽度
    @IBInspectable var borderWidth:CGFloat = 0{
        
        didSet{
            self.layer.borderWidth = borderWidth
        }
    }
    
    //边框的弧度
    @IBInspectable var cornerRadius:CGFloat = 0{
        
        didSet{
            
            self.layer.cornerRadius = cornerRadius
            self.layer.masksToBounds = true
            
        }
    }
    

    
    
}
